package com.yan.demo;

import java.util.Date;

public class Demo5 {
    public static void main(String[] args) {
        Date date1 = new Date(35345459876L);
        System.out.println(date1.getTime());
        System.out.println(date1);
        Date date2 = new Date(65345457856L);
        System.out.println(date2.getTime());
        System.out.println(date2);
        long num = (date2.getTime() - date1.getTime()) / 1000 / 60 / 60 /24;
        System.out.println(num);
    }
}
